import request from '@/utils/request'

// 查询床型配置列表
export function listRoomTypeConfig(query) {
  return request({
    url: '/manage/roomTypeConfig/list',
    method: 'get',
    params: query
  })
}

// 查询床型配置详细
export function getRoomTypeConfig(bedId) {
  return request({
    url: '/manage/roomTypeConfig/' + bedId,
    method: 'get'
  })
}

// 新增床型配置
export function addRoomTypeConfig(data) {
  return request({
    url: '/manage/roomTypeConfig',
    method: 'post',
    data: data
  })
}

// 修改床型配置
export function updateRoomTypeConfig(data) {
  return request({
    url: '/manage/roomTypeConfig',
    method: 'put',
    data: data
  })
}

// 删除床型配置
export function delRoomTypeConfig(bedId) {
  return request({
    url: '/manage/roomTypeConfig/' + bedId,
    method: 'delete'
  })
}
